package com.qys.livesMall.anchor.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 主播VO
 *
 * @author yxh
 * @since 2023-06-17 09:35:51
 */
@Data
@Schema(name = "H2AnchorVO", description = "主播VO")
public class H2AnchorVO implements Serializable {


    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;


    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "主播名字")
    private String anchorName;

    @Schema(description = "粉丝数量")
    private Integer fansNumber;

    @Schema(description = "销量")
    private Integer salesVolume;

    @Schema(description = "销售额")
    private String salesQuota;

    @Schema(description = "订单量")
    private Integer orderNumber;

    @Schema(description = "联系方式")
    private String phone;

    @Schema(description = "主播状态")
    private Integer anchorStatus;

    @Schema(description = "主播等级ID")
    private Long anchorLevel;

    @Schema(description = "主播等级名称")
    private String anchorLevelName;

    @Schema(description = "申请审批状态（0审核中，1未通过，2已通过）")
    private Integer applyStatus;

    @Schema(description = "是否删除（0未删除，1已删除）")
    private Integer isDelete;

    @Schema(description = "创建人")
    private String createBy;

    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updateBy;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "结算方式（1底薪，2提成，3底薪加提成）")
    private Integer clearingForm;

    @Schema(description = "时长和底薪")
    private String basicSalary;

    @Schema(description = "提成比例")
    private BigDecimal commissionRate;

    @Schema(description = "礼物比例")
    private BigDecimal giftRatio;

    @Schema(description = "是否可接带货任务(0否，1是)")
    private Integer taskAuthority;

    @Schema(description = "是否可娱乐直播(0否，1是)")
    private Integer liveEntertainment;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户UID")
    private String userRandomId;

}

